package 实验三;

	public class Test {
		public static void main(String[] args) {
			Student s1 = new Student(1001, "小李", "男");
			Student s2 = new Student(1002, "小王", "女");
			Teacher t1 = new Teacher(2001, "李老师", "男");
			Teacher t2 = new Teacher(2001, "韩老师", "女");
			Course c1 = new Course(20000703, "线性代数", t1, "8:00-9:40", "302");
			Course c2 = new Course(20020809, "生物制药", t2, "13:30-15:10", "203");

			s1.selectclass(c1);
			System.out.println(c1);

			System.out.println("============");

			s2.selectclass(c1);
			System.out.println(c1);

			System.out.println("============");

			s2.selectclass(c2);
			System.out.println(c1);
			s2.selectclass(c1);
			
			System.out.println(c2);

			System.out.println("============");
	        s2.selectclass(c2);
			System.out.println(c1);
		}

	}


